const responseSuc=({ctx,msg="操作成功",data={}})=>{
    ctx.body = {
        code: 200,
        message: msg,
        data: data,
    };
}
const responseErr=({ctx,msg="操作失败",data={}})=>{
    ctx.body = {
        code: 500,
        message: msg,
        data: data,
    };
}
const response=({ctx,code,data={},msg})=>{
    ctx.body = {
        code: code,
        message: msg,
        data: data,
    };
}
module.exports={
    responseSuc,
    responseErr,
    response
}